CES Help Document > Discord Bots > Discord Review Bot
Discord Review Bot
Features
- Modal-based review submission
- Submit with or without Discord tag
- Rating system (1–5)
- Optional feedback and purchase info
- Optional image URL support
Admin Slash Commands:
- /reviewstats — Show total or per-user review data
- /reviewlist — List all reviewers
- /resetreviews — Clear all reviews
- /deletereview — Remove a user's review
All reviews stored locally in reviews.json
Installation & Setup
- Requirements
- Make sure you have:
- Node.js installed
- A VPS or host where the bot can run 24/7
2. Install Dependencies
npm install discord.js dotenv
3. Configure Environment
- Open .env file in the root folder and add yout info
BOT_TOKEN=your-bot-token-here
CLIENT_ID=your-discord-app-client-id
GUILD_ID=your-server-id
COMMAND_CHANNEL_ID=channel-id-for-typing-!review
REVIEW_CHANNEL_ID=channel-id-where-review-is-posted
ADMIN_ROLE_ID=role-id-allowed-to-use-admin-commands
Use Developer Mode in Discord to copy Channel and Role IDs.
4. Start the Bot
node index.js
Using the Bot
- In your designated command channel, type:
!review
Two buttons will appear:
✅ Review (Named)
🕵️ Review (Anonymous)
- Once clicked, a modal will appear prompting:
- Star rating (1–5)
- Feedback (required)
- What you purchased (optional)
- Image URL (optional)
The bot then posts the review as a styled embed in your review channel.
Command | Description |
---|---|
/reviewstats | Show review count and average score |
/reviewlist | List all Discord users who reviewed |
/resetreviews | Clear all reviews in reviews.json |
/deletereview | Remove a specific user's review |
These commands require the user to have the configured
| |
Notes
- No external data is collected.
- The bot does not use threads or DMs.
- All review data is stored in a local file (reviews.json).
- You can reset reviews anytime without breaking functionality.
Troubleshooting
Issue | Fix |
---|---|
Bot doesn’t respond to !review | Make sure it's in the correct channel & has permission to read/send |
Slash commands don’t work | Check if the bot is registered with Discord via your client ID |
Bot crashes or doesn’t start | Check your .env formatting and make sure all dependencies are installed |
Review posts but missing fields | Ensure all modal inputs are being submitted by the user |
Self-Hosting Tips
Use pm2 to keep your bot online:
pm2 start index.js --name DiscordReviewBot
- Back up reviews.json regularly if reviews are critical.
- Recommended host: New Horizon Hosting
Need Help?
Review this page
BOT Discord